#define _CRT_SECURE_NO_WARNINGS 1 
#include<iostream>
#include<vector>

using namespace std;

void test_vector1()
{
	vector<int> v1;
	vector<int> v2(10, 0);
	vector<int> v3(v2.begin(), v2.end());
	string str("hello world");
	vector<int> v4(str.begin(), str.end());
	vector<int> v5(v4);
	for (size_t i = 0; i < v3.size(); i++)
	{
		cout << v3[i] << " ";
	}
	cout << endl;

	vector<int> ::iterator it = v4.begin();
	while (it != v4.end())
	{
		cout << *it << " ";
		it++;
	}
	cout << endl;
	for (auto e : v5)
	{
		cout << e << " ";
	}
	cout << endl;
}

void test_vector2()
{

}

int main()
{
	test_vector1();
	return 0;
}